home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
-
- <?xml-stylesheet href="chrome://global/skin/"?>
-
- <!DOCTYPE dialog [
- <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
- <!ENTITY % sanitizeDTD SYSTEM "chrome://browser/locale/preferences/sanitize.dtd">
- <!ENTITY % prefsDTD SYSTEM "chrome://flock/locale/preferences/flockprefs.dtd">
- %brandDTD;
- %sanitizeDTD;
- %prefsDTD;
- ]>
-
- <prefwindow id="SanitizeDialog" type="child"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- dlgbuttons="accept,cancel"
- title="&sanitizeDialog.title;"
- ondialogaccept="gSanitizePromptDialog.finish();"><!--
- style="width: &window.width; !important;"-->
-
- <prefpane id="SanitizeDialogPane" onpaneload="gSanitizePromptDialog.init();">
-
- <script type="application/x-javascript">
- <![CDATA[
- var gSanitizePromptDialog = {
- init: function ()
- {
- var prefcfgacct = document.getElementById("privacy.item.configuredAccounts");
- var picfgacct = document.getElementById("privacy.item.configuredAccounts.checkbox");
- var pipasswd = document.getElementById("privacy.item.passwords.checkbox");
- if ( pipasswd.checked && !picfgacct.disabled ) {
- picfgacct.disabled = true;
- picfgacct.checked = true;
- }
- },
-
- finish: function ()
- {
- var prefcfgacct = document.getElementById("privacy.item.configuredAccounts");
- var picfgacct = document.getElementById("privacy.item.configuredAccounts.checkbox");
- // Ensure we pick up our programatically changed value.
- if ( picfgacct.checked ) {
- prefcfgacct.value = true;
- } else {
- prefcfgacct.value = false;
- }
- },
-
- onClickPassword: function ()
- {
- var prefcfgacct = document.getElementById("privacy.item.configuredAccounts");
- var picfgacct = document.getElementById("privacy.item.configuredAccounts.checkbox");
- var pipasswd = document.getElementById("privacy.item.passwords.checkbox");
- // HACK ALERT:
- // if "Passwords" is CHECKED, we want to DISABLE the configuredAccounts checkbox.
- // The following if statement looks reversed, but it is not: the onclick handler
- // is called BEFORE the state of the checkbox changes, so the if statement is
- // actually testing the PRIOR state.
- if ( !pipasswd.checked ) {
- picfgacct.disabled = true;
- picfgacct.checked = true;
- } else {
- picfgacct.disabled = false;
- picfgacct.checked = prefcfgacct.value;
- }
- return undefined;
- }
- };
- ]]>
- </script>
-
- <preferences>
- <preference id="privacy.item.history" name="privacy.item.history" type="bool"/>
- <preference id="privacy.item.formdata" name="privacy.item.formdata" type="bool"/>
- <preference id="privacy.item.passwords" name="privacy.item.passwords" type="bool"/>
- <preference id="privacy.item.downloads" name="privacy.item.downloads" type="bool"/>
- <preference id="privacy.item.cookies" name="privacy.item.cookies" type="bool"/>
- <preference id="privacy.item.cache" name="privacy.item.cache" type="bool"/>
- <preference id="privacy.item.sessions" name="privacy.item.sessions" type="bool"/>
- <!-- pref handles deletion of accounts data in RDF -->
- <preference id="privacy.item.configuredAccounts" name="privacy.item.configuredAccounts" type="bool"/>
- </preferences>
-
- <description>&clearDataSettings.label;</description>
-
- <checkbox label="&itemHistory.label;"
- accesskey="&itemHistory.accesskey;"
- tooltiptext="flock.pref.sanitize.history.tip;"
- preference="privacy.item.history"/>
- <checkbox label="&itemDownloads.label;"
- accesskey="&itemDownloads.accesskey;"
- tooltiptext="&flock.pref.sanitize.downloads.tip;"
- preference="privacy.item.downloads"/>
- <checkbox label="&itemFormData.label;"
- accesskey="&itemFormData.accesskey;"
- tooltiptext="&flock.pref.sanitize.formData.tip;"
- preference="privacy.item.formdata"/>
- <checkbox label="&itemCache.label;"
- accesskey="&itemCache.accesskey;"
- tooltiptext="&flock.pref.sanitize.cache.tip;"
- preference="privacy.item.cache"/>
- <checkbox label="&itemCookies.label;"
- accesskey="&itemCookies.accesskey;"
- tooltiptext="&flock.pref.sanitize.cookies.tip;"
- preference="privacy.item.cookies"/>
- <checkbox label="&itemSessions.label;"
- accesskey="&itemSessions.accesskey;"
- tooltiptext="&flock.pref.sanitize.sessions.tip;"
- preference="privacy.item.sessions"/>
- <checkbox label="&itemPasswords.label;"
- id="privacy.item.passwords.checkbox"
- accesskey="&itemPasswords.accesskey;"
- tooltiptext="&flock.pref.sanitize.passwords.tip;"
- preference="privacy.item.passwords"
- onclick="return gSanitizePromptDialog.onClickPassword();"/>
- <!-- handles deletion of accounts data in RDF -->
- <checkbox label="&flock.pref.sanitize.accounts;"
- id="privacy.item.configuredAccounts.checkbox"
- tooltiptext="&flock.pref.sanitize.accounts.tip;"
- preference="privacy.item.configuredAccounts"/>
-
- </prefpane>
- </prefwindow>
-